FlowProfession
Represents a workflow profession step in the system, encapsulating properties and methods for managing profession-related logic.
Properties
Name | Description |
---|---|
Id | The unique identifier of the profession. |
Key | A unique identifier for the workflow step. |
WorkflowCodeInstance | The workflow code instance associated with the flow object. |
CachedDMObjects | The cached document management objects related to the flow object. |
TypeCode | The type code associated with the flow object. |
ValueType | Indicates the type of the profession, such as constant or initiator. |
Description | A descriptive name or details about the profession. |
Name | Name for the workflow step. |
ValueOptionIsChanged | Specifies if the profession's value option has been modified. |
Caption | The caption dictionary representing localized captions for the flow object. |
Code | The code associated with the profession, typically representing a unique value. |
Constructors
Name | Description |
---|---|
FlowProfession(name, workflowData, workflowCodeInstance) | Constructor for the FlowProfession class. Initializes a new instance of the FlowProfession class. |
FlowProfession(name, workflowData, workflowCodeInstance) | Initializes a new instance of the FlowProfession class with a name, workflow data, and workflow code instance. |
Methods
Name | Description |
---|---|
SetFromVariable(sourceVariable) | Sets the current profession using data from a Variable object. |
SetFromPosition(sourcePosition) | Sets the current profession based on a FlowPosition instance. |
SetConstantProfession(id, code, description) | Assigns a constant profession using its ID, code, and description. |
Initialize() | Initializes the profession step with default settings. |
SetConstantProfession(id) | Assigns a constant profession to the workflow step using a profession ID. |
SetFromFlowInitiator() | Sets the profession based on the flow initiator. |
SetConstantProfession(profession) | Assigns a constant profession to the workflow step using a profession object. |
SetFromOther(sourceProfession) | Sets the current profession based on another FlowProfession instance. |
ToLiquid() | Converts the profession data into a format compatible with Liquid templates. |
Events
Name | Description |
---|---|
OnBeforeExecution(sender, args) | Occurs before the execution of the workflow step. |
OnAfterExecution(sender, args) | Occurs after the execution of the workflow step. |
Generic Types
Name | Description |
---|---|
TProperties | Generic type of properties. |